﻿/**********************************************************************
 * @file   FITKAcousticsVTKGraphObjectLoadMonopole.h
 * @brief  单极子载荷可视化
 * @author BaGuijun (baguijun@163.com)
 * @date   2025-01-18
 *********************************************************************/
#ifndef __FITKAcousticsVTKGraphObjectLoadMonopole_H__
#define __FITKAcousticsVTKGraphObjectLoadMonopole_H__

#include "FITKAcousticsVTKGraphObjectPictureBase.h"

#include "FITKAcousticsVTKGraphAdaptorAPI.h"

namespace Acoustics{
    class FITKLoadExcitationMonopole;
}

namespace Exchange
{
    /**
     * @brief  单极子载荷
     * @author BaGuijun (baguijun@163.com)
     * @date   2025-01-18
     */
    class FITKACOUSTICSGRAPHADAPTORAPI FITKAcousticsVTKGraphObjectLoadMonopole : public FITKAcousticsVTKGraphObjectPictureBase
    {
        // Regist
        FITKGraphObjectRegist(FITKAcousticsVTKGraphObjectLoadMonopole, FITKAcousticsVTKGraphObjectPictureBase);
        FITKCLASS(Exchange, FITKAcousticsVTKGraphObjectLoadMonopole);

    public:
        /**
         * @brief    构造函数
         * @param[i] monopole                    单极子载荷对象
         * @author   BaGuijun (baguijun@163.com)
         * @date     2025-01-18
         */
        FITKAcousticsVTKGraphObjectLoadMonopole(Acoustics::FITKLoadExcitationMonopole* monopole);
        /**
         * @brief    析构函数
         * @author   BaGuijun (baguijun@163.com)
         * @date     2025-01-18
         */
        ~FITKAcousticsVTKGraphObjectLoadMonopole() = default;
        /**
         * @brief    获取数据可见性
         * @return   bool                        是否可见
         * @author   BaGuijun (baguijun@163.com)
         * @date     2025-01-18
         */
        bool getDataVisibility() override;
        /**
         * @brief    刷新重写
         * @param[i] forceUpdate        是否强制刷新 
         * @author   BaGuijun (baguijun@163.com)
         * @date     2024-12-16
         */
        virtual void update(bool forceUpdate = false) override;
    private:
        /**
         * @brief    初始化
         * @author   BaGuijun (baguijun@163.com)
         * @date     2025-01-18
         */
        void init() override;
        /**
         * @brief    生成渲染数据
         * @return   bool                  是否成功
         * @author   BaGuijun (baguijun@163.com)
         * @date     2025-01-18
         */
        bool generateDataSet() override;
        /**
         * @brief    获取数据是否可用
         * @return   bool                  是否可用
         * @author   BaGuijun (baguijun@163.com)
         * @date     2025-01-18
         */
        bool getDataEnabled() override;

    };
}   // namespace Exchange

#endif // __FITKAcousticsVTKGraphObjectLoadMonopole_H__
